package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TckTicketSla generated by hbm2java
 */
@Entity
@Table(name="tck_ticket_sla"
    ,catalog="rms"
)
public class TckTicketSla  implements java.io.Serializable {


     private Integer ticketSlaId;
     private String ticketSlaDesc;
     private boolean ticketSlaIsactive;
     private int ticketDaysToComplete;
     private Set<TckTicket> tckTickets = new HashSet(0);

    public TckTicketSla() {
    }

	
    public TckTicketSla(String ticketSlaDesc, boolean ticketSlaIsactive, int ticketDaysToComplete) {
        this.ticketSlaDesc = ticketSlaDesc;
        this.ticketSlaIsactive = ticketSlaIsactive;
        this.ticketDaysToComplete = ticketDaysToComplete;
    }
    public TckTicketSla(String ticketSlaDesc, boolean ticketSlaIsactive, int ticketDaysToComplete, Set tckTickets) {
       this.ticketSlaDesc = ticketSlaDesc;
       this.ticketSlaIsactive = ticketSlaIsactive;
       this.ticketDaysToComplete = ticketDaysToComplete;
       this.tckTickets = tckTickets;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="TICKET_SLA_ID", unique=true, nullable=false)
    public Integer getTicketSlaId() {
        return this.ticketSlaId;
    }
    
    public void setTicketSlaId(Integer ticketSlaId) {
        this.ticketSlaId = ticketSlaId;
    }
    
    @Column(name="TICKET_SLA_DESC", nullable=false, length=50)
    public String getTicketSlaDesc() {
        return this.ticketSlaDesc;
    }
    
    public void setTicketSlaDesc(String ticketSlaDesc) {
        this.ticketSlaDesc = ticketSlaDesc;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="tckTicketSla")
    public Set<TckTicket> getTckTickets() {
        return this.tckTickets;
    }
    
    public void setTckTickets(Set<TckTicket> tckTickets) {
        this.tckTickets = tckTickets;
    }

@Column(name="TICKET_SLA_ISACTIVE", nullable=false)
    public boolean isTicketSlaIsactive() {
        return this.ticketSlaIsactive;
    }
    
    public void setTicketSlaIsactive(boolean ticketSlaIsactive) {
        this.ticketSlaIsactive = ticketSlaIsactive;
    }
    
    @Column(name="TICKET_DAYS_TO_COMPLETE", nullable=false)
    public int getTicketDaysToComplete() {
        return this.ticketDaysToComplete;
    }
    
    public void setTicketDaysToComplete(int ticketDaysToComplete) {
        this.ticketDaysToComplete = ticketDaysToComplete;
    }


}


